package com.glorious.gcontacts.model;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.users.User;

@SuppressWarnings("serial")
@PersistenceCapable
public class UserData implements Serializable
{
	@PrimaryKey
	@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
	private String key;
	
	@Persistent
	private User user;
	
	@Persistent
	private GoogleContactInfo googleContactInfo;

	public String getKey()
	{
		return key;
	}

	public void setKey(String key)
	{
		this.key = key;
	}

	public User getUser()
	{
		return user;
	}

	public void setUser(User user)
	{
		this.user = user;
	}

	public GoogleContactInfo getGoogleContactInfo()
	{
		return googleContactInfo;
	}

	public void setGoogleContactInfo(GoogleContactInfo googleContactInfo)
	{
		this.googleContactInfo = googleContactInfo;
	}
	
}
